[ACM] Fix the resource representations in the resource_label
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 18 Oct 2006 16:54:58 +0000 (17:54 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 18 Oct 2006 16:54:58 +0000 (17:54 +0100)
commitaec48f2d9d9087a49e9000e9f6541efa1069e9c3
tree517df5ad755fdf169044766dc71d947de82f15c4
parentae027013678935a824e7ee7e206f151f0283953e
[ACM] Fix the resource representations in the resource_label
file. Without this patch, multiple representations of the same
resource can co-exist in the resource label file and lead to errors
during operation.

Ensures that all resource file names are stored with absolute
path name and are unique. Setting labels of phy-resources, relative
paths will automatically be pre-pended with '/dev/'; labeling
file-resources with relative paths will raise an error.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>
tools/python/xen/util/security.py
tools/python/xen/xm/addlabel.py
tools/python/xen/xm/getlabel.py
tools/python/xen/xm/rmlabel.py